package com.designmodel.atcion.state;

/**
 * 状态模式
 */
public class Test {

    public static void main(String[] args) {

        State state = new State();
        Context context = new Context(state);

        state.setValue("state1");
        context.method();

        state.setValue("state2");
        context.method();
    }
}
